package net.sxjr.mbg.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 用户
 * </p>
 *
 * @author cuixc
 * @since 2020-12-10
 */
public class JbdpUser extends Model<JbdpUser> {

    private static final long serialVersionUID=1L;

    /**
     * 用户主键
     */
    @TableId("USER_ID")
    private String userId;

    /**
     * 未删除时为注册ID；删除状态为实体ID
     */
    @TableField("TARGET_ID")
    private String targetId;

    /**
     * 目标类型
     */
    @TableField("JBDP_TYPE")
    private String jbdpType;

    /**
     * 账号
     */
    @TableField("ACCOUNT")
    private String account;

    /**
     * 密码
     */
    @TableField("PASSWORD")
    private String password;

    /**
     * 状态
     */
    @TableField("STATE")
    private Integer state;

    /**
     * 删除标示
     */
    @TableField("DEL_FLAG")
    private Integer delFlag;

    /**
     * 备用字段1
     */
    @TableField("DEF1")
    private String def1;

    /**
     * 备用字段2
     */
    @TableField("DEF2")
    private String def2;

    /**
     * 用户名
     */
    @TableField("USER_NAME")
    private String userName;


    public String getUserId() {
        return userId;
    }

    public JbdpUser setUserId(String userId) {
        this.userId = userId;
        return this;
    }

    public String getTargetId() {
        return targetId;
    }

    public JbdpUser setTargetId(String targetId) {
        this.targetId = targetId;
        return this;
    }

    public String getJbdpType() {
        return jbdpType;
    }

    public JbdpUser setJbdpType(String jbdpType) {
        this.jbdpType = jbdpType;
        return this;
    }

    public String getAccount() {
        return account;
    }

    public JbdpUser setAccount(String account) {
        this.account = account;
        return this;
    }

    public String getPassword() {
        return password;
    }

    public JbdpUser setPassword(String password) {
        this.password = password;
        return this;
    }

    public Integer getState() {
        return state;
    }

    public JbdpUser setState(Integer state) {
        this.state = state;
        return this;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public JbdpUser setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
        return this;
    }

    public String getDef1() {
        return def1;
    }

    public JbdpUser setDef1(String def1) {
        this.def1 = def1;
        return this;
    }

    public String getDef2() {
        return def2;
    }

    public JbdpUser setDef2(String def2) {
        this.def2 = def2;
        return this;
    }

    public String getUserName() {
        return userName;
    }

    public JbdpUser setUserName(String userName) {
        this.userName = userName;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.userId;
    }

    @Override
    public String toString() {
        return "JbdpUser{" +
        "userId=" + userId +
        ", targetId=" + targetId +
        ", jbdpType=" + jbdpType +
        ", account=" + account +
        ", password=" + password +
        ", state=" + state +
        ", delFlag=" + delFlag +
        ", def1=" + def1 +
        ", def2=" + def2 +
        ", userName=" + userName +
        "}";
    }
}
